Optimize freshness of git repos
authorAlex Crichton <alex@alexcrichton.com>
Thu, 31 Jul 2014 19:20:05 +0000 (12:20 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 31 Jul 2014 19:20:05 +0000 (12:20 -0700)
commite1de1c738b02c3bbfb3c23849ba5c4a85f8a474a
treebee2db2e993641871fd09ef73e4c2aca50bc5201
parentb4063f876f9f2b514a34870d26d530f520e9c906
Optimize freshness of git repos

This commit cuts down on the number of invocations of `git` to make the "happy
path" of an up-to-date git repo much smoother. The precise information is also
applied from the lockfile to speed things up.
src/cargo/sources/git/mod.rs
src/cargo/sources/git/source.rs
src/cargo/sources/git/utils.rs